package yy.com.yjbotouch.util;

import android.util.Log;

/**
 * @description: <描述当前版本功能>
 * <p>
 *     将touch的MotionEvent事件的值转换为字符
 * </p>
 * @author: yjbo
 * @date: 2016-07-26 14:32
 */
public class MotionEventUtil {

    public static void changeIntoContent(String tag,int eventInt) {
        String string = "";
        if (eventInt == 0) {
            string = "ACTION_DOWN----";
        }else  if (eventInt == 1) {
            string = "ACTION_UP--";
        }else  if (eventInt == 2) {
            string = "ACTION_MOVE--";
        }else  if (eventInt == 3) {
            string = "ACTION_CANCEL--";
        }else  if (eventInt == 4) {
            string = "ACTION_OUTSIDE--";
        }else  if (eventInt == 5) {
            string = "ACTION_POINTER_DOWN--";
        }else  if (eventInt == 6) {
            string = "ACTION_POINTER_UP--";
        }else  if (eventInt == 7) {
            string = "ACTION_HOVER_MOVE--";
        }else  if (eventInt == 8) {
            string = "ACTION_SCROLL--";
        }else  if (eventInt == 9) {
            string = "ACTION_HOVER_ENTER--";
        }else  if (eventInt == 10) {
            string = "ACTION_HOVER_EXIT--";
        }else  if (eventInt == 11) {
            string = "ACTION_BUTTON_PRESS--";
        }else  if (eventInt == 12) {
            string = "ACTION_BUTTON_RELEASE--";
        }
        Log.d(tag, string);
    }


}
